package com.zpc.myvideoserver.service.impl;

import com.zpc.myvideoserver.entity.Collect;
import com.zpc.myvideoserver.entity.Vo.CollectVo;
import com.zpc.myvideoserver.mapper.CollectMapper;
import com.zpc.myvideoserver.service.CollectService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 视频收藏表 服务实现类
 * </p>
 *
 * @author zpc
 * @since 2023/11/03
 */
@Service
public class CollectServiceImpl extends ServiceImpl<CollectMapper, Collect> implements CollectService {
    @Autowired
    CollectMapper collectMapper;
    @Override
    public List<CollectVo> getAllCollect() {
        return collectMapper.getAllCollect();
    }
}
